home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor2 / autostrt.doc < prev    next >
Text File  |  1995-03-31  |  2KB  |  35 lines

  1. (Developers.only) 
  2. Item: 29 by akcs.davemarsh@hpcvbbs.cv.hp.com [DAVID J. MARSH] 
  3.   Subj: Autostart libraries 
  4.   Date: Fri Jun 28 1991 
  5.  
  6. These are libraries containing the code to acomplish an autostart 
  7. function.  The first, AUTOBOOT.LIB, is a library that causes a warm 
  8. start at every power on event (even if the 48 timed out and turned 
  9. itself off). The way that this is done is very much the same as the 
  10. way the DEMO card from HP does it.  The second library, AUTOSTRT.LIB, 
  11. has CONFIG code that simply sets an immediately executing control 
  12. alarm that evaluates the object 'AUTOEXEC' in the home menu.  This is 
  13. done so that any program may be run. (When in the half-initialized 
  14. state in which config code runs, many usercode programs will fail...). 
  15. AUTOEXEC may contain any program or call any program within the 
  16. machine. A side effect of this approach is that all config routines of 
  17. all libraries are run at every machine turn on. 
  18.  
  19. Dave Marsh 
  20.  
  21. ---- 
  22.  
  23. Note from Joe Horn: 
  24.  
  25. I took Dave's AUTOSTRT.LIB and expanded it slightly to search through 
  26. the ports, too, for the AUTOEXEC program.  So you can put it in a ROM 
  27. and make take-over cards, just like the DEMO ROM.  (It's called 
  28. AUTOPORT.LIB on this disk.)  I've already used this technique in a 
  29. commercial ROM, and it works like a charm; the user just turns the HP 
  30. 48 on, and everything else is automatic!  -jkh- 
  31.  
  32. RECAP: AUTOBOOT.LIB -- warmstarts at every turn-on. 
  33.        AUTOSTRT.LIB -- runs AUTOEXEC in main memory at warmstart. 
  34.        AUTOPORT.LIB -- runs &:AUTOEXEC at warmstart. 
  35.